/**
 * 作用：将公共的,复用的组件实现统一的注册
 */
// 导入通用的工具栏组件
import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import ImageHolder from './ImageHolder'
import Lang from './Lang'
import ScreenFull from './ScreenFull'

const components = [
  PageTools,
  UploadExcel,
  UploadImg,
  ImageHolder,
  Lang,
  ScreenFull
]

/**
 * 进行全局组件的挂载
 */
export default {
  install(Vue) {
    components.forEach(componet => {
      // 将工具栏组件,注册为全局组件
      Vue.component(componet.name, componet)
    })
  }
}

